package com.company.project.vo.req;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * Title: PageParam.java  
 * Description: 分页参数 
 * @author LS  
 * @date 2021-1-13 9:32:46  
 * @version 1.0
 */
@Data
public class PageParam {
	
	@ApiModelProperty(value = "页码，从1开始")
	@NotNull(message="页码不能为空！")
    @Min(value=0,message="页码必须大于0！")
	private Integer pageIndex;
	
	@ApiModelProperty(value = "每页数量，大于1")
	@NotNull(message="每页数量不能为空！")
    @Min(value=1,message="每页数量必须大于1！")
	private Integer pageSize;

}
